<template>
	<uv-calendars ref="calendars" @confirm="confirm" />
	<button @click="open">打开日历</button>
</template>

<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app';

const calendars = ref()

onLoad(() =>{
	uni.showLoading({
		title:'加载中...',
		mask:true
	})

	setTimeout(() => {
		uni.hideLoading()	
	},3000)
})

const open = () => {
	calendars.value.open();
}
const confirm = (e) => {
	console.log(e)
}

const queryString = ref('怎么接入deepseek')

const getDeepSeekInfo = (queryString) =>{
	let response = fetch('https://api.deepseek.example/search?'+ new URLSearchParams({q:queryString}),{
		method:'GET',
		headers:{
			'Content-Type':'application/json',
			'Authorization':'Bearer sk-bcf2b256f4de43ca90dcdbbf6072f161'
		}
	})

	console.log(response)
} 

// getDeepSeekInfo(queryString.value)
</script>

<style>
.title {
	font-size: 36rpx;
	color: #8f8f94;
}
</style>
